<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<div class="sidebar">
    <div class="sidebar-header">
        <i class="fas fa-paw fa-2x mb-2"></i>
        <h4>宠物医院管理</h4>
        <small>管理员控制台</small>
    </div>
    <div class="sidebar-menu">
        <a href="${pageContext.request.contextPath}/pages/admin/dashboard.jsp" 
           class="${pageContext.request.requestURI.contains('dashboard') ? 'active' : ''}">
            <i class="fas fa-tachometer-alt"></i>仪表板
        </a>
        <a href="${pageContext.request.contextPath}/user/list"
           class="${pageContext.request.requestURI.contains('user') ? 'active' : ''}">
            <i class="fas fa-users"></i>用户管理
        </a>
        <a href="${pageContext.request.contextPath}/pet/list"
           class="${pageContext.request.requestURI.contains('pet') ? 'active' : ''}">
            <i class="fas fa-paw"></i>宠物管理
        </a>
        <a href="${pageContext.request.contextPath}/appointment/list"
           class="${pageContext.request.requestURI.contains('appointment') ? 'active' : ''}">
            <i class="fas fa-calendar-check"></i>预约管理
        </a>
        <a href="${pageContext.request.contextPath}/health/list"
           class="${pageContext.request.requestURI.contains('health') ? 'active' : ''}">
            <i class="fas fa-clipboard-list"></i>健康记录
        </a>
        <a href="${pageContext.request.contextPath}/user/logout">
            <i class="fas fa-sign-out-alt"></i>退出登录
        </a>
    </div>
</div>

<style>
.sidebar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h4 {
    margin: 0;
    font-weight: 600;
}

.sidebar-menu {
    padding: 20px 0;
}

.sidebar-menu a {
    display: block;
    padding: 15px 25px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left-color: white;
}

.sidebar-menu i {
    width: 20px;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
}
</style>
